\documentclass[letterpaper, 11pt]{article}
\usepackage{geometry}
\usepackage{graphicx, pdflscape, amssymb, amsmath, booktabs, tabularx, makecell}
\usepackage[justification=justified]{caption}
\usepackage[justification=justified]{subcaption}
\usepackage[title]{appendix}
\usepackage[hyphens]{url}
\usepackage[doublespacing]{setspace}
\usepackage[backend=biber, authordate]{biblatex-chicago}

\geometry{left=1in, right=1in, top=1in, bottom=1in}

\begin{document}
\pagestyle{empty}
\addtolength{\footnotesep}{1mm}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%% MAIN TABLES %%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% Table 1: Baseline summ stats
\newgeometry{left=0.5in, right=0.5in, top=1in, bottom=1in}
\begin{landscape}
\input{table-baseline-summstats}
\end{landscape}
\restoregeometry

% Table 2: Study participants by wave and survey attrition
\input{table-study-participants-by-wave-and-survey-attrition}

% Table 3: Effects on short-term health knowledge
\input{table-midline-knowledge-aggregate}

% Table 4: Effects on longer-term health knowledge
\input{table-endline-knowledge-aggregate}

% Table 5: Effects on health behavior 
\newgeometry{left=1in, right=1in, top=0.8in, bottom=0.8in}
\begin{landscape}
\input{table-endline-behavior}
\end{landscape}
\restoregeometry 

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%% APPENDICES %%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{appendices}
\captionsetup[table]{name=Supplementary Material Table}
\captionsetup[figure]{name=Supplementary Material Figure}
\restoregeometry

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% APPENDIX B: Health Knowledge Questions %%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\clearpage
\setcounter{table}{0}
\setcounter{figure}{0}
\renewcommand{\thetable}{B\arabic{table}}
\renewcommand{\thefigure}{B\arabic{figure}}

% Appendix Table B1: Effects on short-term health knowledge, by question
\begin{landscape}
\input{../output/appendix-table-midline-knowledge-by-question}
\end{landscape}

% Appendix Tables B2-B3: Effects on longer-term health knowledge, by question
\begin{landscape}
\input{../output/appendix-table-endline-knowledge-by-question-modules-1-2-3-5}
\end{landscape}

\newgeometry{left=0.75in, right=0.75in, top=0.75in, bottom=0.75in}
\begin{landscape}
\input{../output/appendix-table-endline-knowledge-by-question-module-4}
\end{landscape}
\restoregeometry

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% APPENDIX D: Missing Data and Attrition %%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\clearpage
\setcounter{table}{0}
\setcounter{figure}{0}
\renewcommand{\thetable}{D\arabic{table}}
\renewcommand{\thefigure}{D\arabic{figure}}

% Appendix Table D1: Attrition Analysis
\input{../output/appendix-table-attrition-analysis}

% Appendix Table D2: Effects on short-term health knowledge, excluding Wave 1 Respondents
\input{../output/appendix-table-midline-knowledge-aggregate-excluding-wave1}

% Appendix Table D3: Short-term health knowledge, Manski/Lee Bounds
\begin{landscape}
\input{../output/appendix-table-midline-knowledge-bounds-panelA}
\input{../output/appendix-table-midline-knowledge-bounds-panelB}
\end{landscape}

% Appendix Table D4: Long-term health knowledge, Manski/Lee Bounds
\begin{landscape}
\input{../output/appendix-table-endline-knowledge-bounds-panelA}
\input{../output/appendix-table-endline-knowledge-bounds-panelB}
\end{landscape}

% Appendix Table D5: Health behavior, Manski/Lee Bounds
\newgeometry{left=0.6in, right=0.6in, top=0.75in, bottom=0.75in}
\begin{landscape}
\input{../output/appendix-table-endline-behavior-bounds-panelA}
\input{../output/appendix-table-endline-behavior-bounds-panelB}
\end{landscape}
\restoregeometry

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% APPENDIX E: Additional Results  %%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\clearpage
\setcounter{table}{0}
\setcounter{figure}{0}
\renewcommand{\thetable}{E\arabic{table}}
\renewcommand{\thefigure}{E\arabic{figure}}

% Appendix Table E1: Program Attendance Rates
\begin{landscape}
\input{../output/appendix-table-attendance-rates-panelA}
\input{../output/appendix-table-attendance-rates-panelB}
\end{landscape}

% Appendix Table E2: Heterogeneity
\begin{landscape}
\input{../output/appendix-table-heterogeneity}
\end{landscape}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% APPENDIX F: Robustness %%% %%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\clearpage
\setcounter{table}{0}
\setcounter{figure}{0}
\renewcommand{\thetable}{F\arabic{table}}
\renewcommand{\thefigure}{F\arabic{figure}}

% Appendix Table F1: Health Insurance
\input{../output/appendix-table-insurance}

% Appendix Table F2: Midline knowledge results, pure placebo group
\input{../output/appendix-table-midline-knowledge-aggregate-excluding-couns-goal.tex}

% Appendix Table F3: Endline knowledge results, pure placebo group
\input{../output/appendix-table-endline-knowledge-aggregate-excluding-couns-goal.tex}

% Appendix Table F4: Endline behavior, pure placebo group
\begin{landscape}
\input{../output/appendix-table-endline-behavior-excluding-couns-goal.tex}
\end{landscape}

% Appendix Table F5: Multiple Inference Adjustment
\newgeometry{left=0.6in, right=0.6in, top=1in, bottom=1in}
\begin{landscape}
\input{../output/appendix-table-multiple-inference-adjustment}
\end{landscape}

% Appendix Table F6: MDEs
\newgeometry{left=0.6in, right=0.6in, top=0.9in, bottom=0.9in}
\begin{landscape}
\input{../output/appendix-table-mde}
\end{landscape}

% Appendix Table F7: Probit and Logit
\restoregeometry
\begin{landscape}
\input{../output/appendix-table-endline-behavior-probit-logit-panelA}
\input{../output/appendix-table-endline-behavior-probit-logit-panelB}
\end{landscape}

% Appendix Table F8: Midline knowledge, Alternative specifications, A) not using strata fixed effects, B) using robust instead of clustered SEs
\restoregeometry
\input{../output/appendix-table-alternative-specifications-midline-knowledge-aggregate-panelA}
\input{../output/appendix-table-alternative-specifications-midline-knowledge-aggregate-panelB}

% Appendix Table F9: Endline knowledge, Alternative specifications, A) not using strata fixed effects, B) using robust instead of clustered SEs
\input{../output/appendix-table-alternative-specifications-endline-knowledge-aggregate-panelA}
\input{../output/appendix-table-alternative-specifications-endline-knowledge-aggregate-panelB}

% Appendix Table F10: Endline behavior, Alternative specifications, A) not using strata fixed effects, B) using robust instead of clustered SEs
\newgeometry{left=0.78in, right=0.78in, bottom=1in, top=1in}
\input{../output/appendix-table-alternative-specifications-endline-behavior-panelA}
\input{../output/appendix-table-alternative-specifications-endline-behavior-panelB}
\restoregeometry

% Appendix Table F11: Alternative Construction of Health Knowledge Index
\begin{landscape}
\vspace*{\fill}
\input{../output/appendix-table-alternative-knowledge-index.tex}
\vspace*{\fill}
\end{landscape}

\end{appendices}
\end{document}


